import { View, Text, Button } from "@tarojs/components";
import Taro from "@tarojs/taro";

export default function Tools({ className }) {
  const toUser = () => { Taro.switchTab({ url: '/pages/user/index' }); }

  return (
    <View className={`theme-bg-black rounded-tl-md rounded-tr-md px-4 py-3 flex items-center justify-between ${className}`}>
      <Text className="text-[#D4AC63]">工具栏</Text>
      <Button onClick={toUser} className="px-3 py-1 rounded-full text-sm m-0 bg-[#D4AC63] text-white text-xs">登录/注册</Button>
    </View>
  )
}

